/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package org.jeecg.common.util;


/**
 * 流程工具类
 * @author ThinkGem
 * @version 2013-11-03
 */
public class CommonDefine {
	/**执行区分 1:申请者  2:审批者  3:协同(协助)执行者*/
	public static final String OPERATE_1 = "1";
	public static final String OPERATE_2 = "2";
	public static final String OPERATE_3 = "3";

	/**巡检类型 1：客服巡检   2：工程巡检  3：保安  4:保洁**/
	public static final String INSPECTION_TYPE_1 = "1" ;
	public static final String INSPECTION_TYPE_2 = "2" ;
	public static final String INSPECTION_TYPE_3 = "3" ;
	public static final String INSPECTION_TYPE_4 = "4" ;

	/**巡检项目类别 7：室外8：室内 9：地下区域**/
	public static final Integer INSPECTION_OBJECT_7 = 7;
	public static final Integer INSPECTION_OBJECT_8 = 8;
	public static final Integer INSPECTION_OBJECT_9 = 9;

	/** 巡检执行状态: 0:未开始  1:未完成  2:已完成*/
	public static final String INSPECTION_STATUS_0 = "0";
	/** 巡检执行状态:1:未完成*/
	public static final String INSPECTION_STATUS_1 = "1";
	/** 巡检执行状态:2:已完成*/
	public static final String INSPECTION_STATUS_2 = "2";
	/**巡检执行状态:3：强行终止**/
	public static final String INSPECTION_STATUS_3 = "3";

	/**巡检报告区分: 0:正常报告*/
	public static final String INSPECTION_REPORT_0 = "0";
	/**巡检报告区分: 1:异常报告*/
	public static final String INSPECTION_REPORT_1 = "1";





	/**------------报修维修状态控制----------------------**/

	/**维修状态 2:不开启工单 已结束 */
	public static final int REPAIR_STATUS_f = -1;

	/** --------------------- 客服 事项  -----------------**/
	/**维修状态 0:提交待处理  ---- 》  客服待签收 */
	public static final int REPAIR_STATUS_1000 = 0;
	/** 工程人员待抢单 (待抢单)**/
	public static final int REPAIR_STATUS_1010 = 1010;

	/**提交报修 - 待受理*/
	public static final int REPAIR_STATUS_100= 100;
	/**报修受理 - 已受理未开始维修: */
	public static final int REPAIR_STATUS_200 = 200;
	/**维修中: */
	public static final int REPAIR_STATUS_300 = 300;
	/** 维修完成 */
	public static final int REPAIR_STATUS_600 = 600;
	/**已评价*/
	public static final int REPAIR_STATUS_900 = 900;
    /**报修单取消*/
	public static final int REPAIR_STATUS_800 = 800;
	/**报修挂起*/
	public static final int REPAIR_STATUS_500 = 500;
	//工程人员Code
	 public static final int REPAIR_CODE = 2100;
	 //客服人员Code
	 public static  final  int SERVICE_CODE =2200;
	 /**是否付款*/
	public interface ConfirmPay{
		/**已付款(线上)*/
		Integer CONFIRM_PAY_0 = 0;
		/**未付款(线下)*/
		Integer CONFIRM_PAY_1 = 1;
	}
	public interface Repair{
	    /**报修类型 0:公用部位*/
	    String REPAIR_TYPE_0 = "0";
	    /**报修类型 1:自用部位*/
	    String REPAIR_TYPE_1 = "1";
    }
    /* 巡检项级别*/
	//全公司
	public static  final  int INSPECTION_LEVEL_0 = 0;
	//分公司
	public static  final  int INSPECTION_LEVEL_1 = 1;
	//管理处/项目
	public static  final  int INSPECTION_LEVEL_2 = 2;

	//巡检状态
	//未开时
	public  static  final  int INSPECTION_STATUS_100 = 100 ;
	//巡检中
	public  static  final  int INSPECTION_STATUS_200 = 200 ;
	//巡检完成
	public  static  final  int INSPECTION_STATUS_300 = 300 ;
	//强制结束
	public  static  final  int INSPECTION_STATUS_400 = 400 ;
	//超时状态
	public  static  final  int INSPECTION_STATUS_500 = 500 ;

   //巡检异常状态
   public  static  final  int INSPECTION_EXCEPTION_0 = 0;
   public  static  final  int INSPECTION_EXCEPTION__1= 1 ;
   public  static  final  int INSPECTION_EXCEPTION__2 = 2 ;


	/** 支付方式:线下 */
	public static final String PAY_WAY_OFFLINE = "offline";

	/** 支付状态:-1未支付 */
	public static final int PAY_STATUS_NOSTART = -1;
	/** 支付状态:0支付中 */
	public static final int PAY_STATUS_ING = 0;
	/** 支付状态:1支付成功 */
	public static final int PAY_STATUS_OK = 1;
	/** 支付状态:9支付失败或用户取消 */
	public static final int PAY_STATUS_NG = 9;
	/**采购是不是有审核流程 true：有   false：没有*/
	public static final boolean PROCUREMENT_EXAMINE = true;

	/**------------工程分类编号 编码方式----------------------**/
	public static final int PRJ_CODE_WAY_10 = 10; //纯数字
	public static final int PRJ_CODE_WAY_20 = 20; //纯字母
	
	/**待受理*/
	public  static  final  int COMPLAIN_STATUS_100 = 100;
	/*已处理 待评论*/
	public static  final  int COMPLAIN_STATUS_200 = 200;
	/*满意*/
	public static  final  int COMPLAIN_STATUS_300 = 300;
	/*不满意*/
	public static  final  int COMPLAIN_STATUS_400 = 400;



	//审批流程
	public static  final  String APPROVAL_START_NAME = "发起流程";
	public static  final  String APPROVAL_END_NAME = "结束流程";
	//按钮code值
	public static final String APPROVAL_BUTTON_START="10";
	public static final String APPROVAL_BUTTON_AGREE="20";

	public static final String APPROVAL_BUTTON_REFUSE="30";

}
